# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: 7.8 减少可调用对象的参数个数.py
@time: 2021/02/02
"""
from functools import partial


def run(a, b, c, d, e):
    ...
    print(a, b, c, d, e)


def test01():
    ...
    p_run = partial(run,2,e = 20)
    p_run(2,3,4)


def test02():
    ...
    n_run = partial(run,e=1)
    n_run(1,2,3,4)

if __name__ == '__main__':
    pass
    test02()
